package basic4;

import java.util.*;

public class J04_02 {

	public static void main(String[] args) {
		
		while(true){
		Scanner sc = new Scanner(System.in);
		System.out.println("숫자를 입력하세요 : ");
		int sc1 = sc.nextInt();
		
		if (sc1<10000) {
			System.out.println("10000미만");
		}
		else if((sc1>=10000)==(sc1<20000)){
			System.out.println("10000~20000");
		}
		else if((sc1>=20000)==(sc1<30000)){
			System.out.println("20000~30000");
		}
		else System.out.println("범위 값 밖입니다.");
	}

}
}